package com.fong.spring_cloud_config_server;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.config.server.EnableConfigServer;

@SpringBootApplication
@EnableConfigServer // 开启配置服务支持
@EnableDiscoveryClient // 开启注册发现，将自己作为服务注册到注册中心
public class SpringCloudConfigServerApplication {

	public static void main( String[] args ) {
		SpringApplication.run( SpringCloudConfigServerApplication.class, args );
	}
}
